package com.cw.jeeyt;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;

import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author chenw
 * @version $$Id: JeeytApplication.java, v 0.1 2018/10/23 1:07 PM chenw Exp $$
 */
@SpringBootApplication(scanBasePackages = {"com.cw.**",
    "org.flowable.ui.modeler.**", "org.flowable.ui.common.**"},
    exclude = {SecurityAutoConfiguration.class, UserDetailsServiceAutoConfiguration.class,
        LiquibaseAutoConfiguration.class, MultipartAutoConfiguration.class})
@MapperScan({"com.cw.**.dao.mapper.**"})
@EnableDiscoveryClient
@EnableFeignClients({"com.cw.**.api.feign"})
@EnableCaching
@ServletComponentScan
@ImportResource({"classpath*:rocketmq/*.xml"})
@EnableAspectJAutoProxy
@EnableApolloConfig
public class JeeytApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        System.setProperty("rocketmq.client.logUseSlf4j","true");
        System.setProperty("rocketmq.client.logLevel","WARN");
        SpringApplication.run(JeeytApplication.class, args);
    }
}
